package com.credit.management.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.credit.management.system.custom.dao.CCompanyGuaranteMapper;
import com.credit.management.system.generator.dao.CompanyGuaranteMapper;
import com.credit.management.system.jdbc.dao.CompanyGuaranteDao;
import com.credit.management.system.model.CompanyGuarante;
import com.credit.management.system.model.Page;
import com.credit.management.system.service.ICompanyGuaranteService;
@Service
public class CompanyGuaranteService implements ICompanyGuaranteService {
	@Autowired
	private CCompanyGuaranteMapper cCompanyGuaranteMapper;
	@Autowired
	private CompanyGuaranteMapper companyGuaranteMapper;
	@Autowired
	private CompanyGuaranteDao companyGuaranteDao;
	
	/**
	 * 删除
	 * Companyguarante
	 */
	@Override
	public int deleteByPrimaryKey(Integer id) {
		
		return companyGuaranteMapper.deleteByPrimaryKey(id);
		
	/**
	 * 添加
	 * Companyguarante	
	 */
	}
	@Override
	public int insertSelective(CompanyGuarante record) {
		
		return companyGuaranteMapper.insertSelective(record);
	}
	
	/**
	 * 根据id查询
	 * Companyguarante
	 */
	@Override
	public CompanyGuarante selectByPrimaryKey(Integer id) {
		
		return companyGuaranteMapper.selectByPrimaryKey(id);
	}
	
	/**
	 * 根据id修改
	 * Companyguarante
	 */
	@Override
	public int updateByPrimaryKeySelective(CompanyGuarante record) {
		
		return companyGuaranteMapper.updateByPrimaryKeySelective(record);
	}
	
	/**
	 * 分页查询
	 * Companyguarante
	 */
	@Override
	public Page findPageCompanyguarante(Page page) {
		
		return companyGuaranteDao.findPageCompanyguarante(page);
	}
}
